package com.lleice.service.mapstruct;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.lleice.service.dto.sys.UserDto;
import com.lleice.service.entity.sys.SysUser;

/**
 * 用户类型互转
 * @author lizihao
 *
 */
@Mapper
public interface SysUserConverMapper {

	SysUserConverMapper INSTANCES = Mappers.getMapper(SysUserConverMapper.class);
	/**
	 * 用户表entity转用户dto
	 * @param u
	 * @return
	 */
	UserDto sysUserToUserDto(SysUser u);
}
